<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"><!--申明thymeleaf前缀-->
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    首页<br>
    姓名：<span th:text="${name}"></span><br>
    <img width="200" height="200" th:src="@{'/html/'+${imgPath}}"><br>
    <a th:href="@{/test/del(id=${userId})}">删除</a><br>
    成绩：<span th:text="${grade}"></span>
    评价：<span th:if="${grade >= 60}">合格</span>
         <span th:if="${grade < 60}">不合格</span>

    <table border="1" width="60%" cellspacing="0">
        <thead><tr><th>编号</th><th>姓名</th><th>性别</th></tr></thead>
        <tbody>
            <tr th:each="user : ${userList}">
                <td th:text="${user.id}"></td>
                <td th:text="${user.name}"></td>
                <td th:text="${user.sex}"></td>
            </tr>
        </tbody>
    </table>

    <a th:each="i : ${#numbers.sequence(1,pages)}" style="margin-left: 5px"
       th:text="${i}+'页'" th:href="@{/cutAll(pageNO=${i})}"></a>

</body>
</html>